package com.sc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;


@Data
@TableName("property_action")
public class Action {
    
    @TableId(type = IdType.AUTO)
    private Integer id;  // 主键

    @TableField(value = "title")
    private String title; // 标题

    @TableField(value = "author")
    private String author; // 作者

    @TableField(value = "an_status")
    private int anStatus; // 发布状态，1：已发布，2：未发布


    @TableField(value = "publisher")
    private String publisher; // 发布人

    @TableField(value = "an_date")
    @JsonFormat(shape = JsonFormat.Shape.STRING ,pattern = "yyyy/MM/dd")
    private LocalDate anDate; //发布日期

    @TableField(value = "detail")
    private String detail; //活动详情
}
